<html>
<head><meta charset="utf-8"><title>Autocompletion missing after function completion · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Autocompletion.20missing.20after.20function.20completion.html">Autocompletion missing after function completion</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="237920940"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Autocompletion%20missing%20after%20function%20completion/near/237920940" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Riccardo D&#x27;Ambrosio <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Autocompletion.20missing.20after.20function.20completion.html#237920940">(May 08 2021 at 03:38)</a>:</h4>
<p>Hello! </p>
<p>Apologies if this is not the correct channel for this, but i am unsure if this is a VSC issue or something related to RA, and it seemed to work fine when using other LSPs. Anyways, for some reason, VSC doesnt seem to give autocompletions right after i click on a function completion. This seems to be a recurring issue when RA auto-selects something for you when completing, for example, auto-selecting parameter names so you can change them. I have to click out of the selection and go back to it for it to actually give me completions. For example:</p>
<div class="codehilite" data-code-language="Rust"><pre><span></span><code><span class="n">foo</span><span class="p">.</span><span class="n">ba</span><span class="w"></span>
<span class="n">foo</span><span class="p">.</span><span class="n">bar</span><span class="p">(</span><span class="n">baz</span><span class="p">)</span><span class="w"> </span><span class="c1">// baz is selected</span>
<span class="n">foo</span><span class="p">.</span><span class="n">bar</span><span class="p">(</span><span class="o">&amp;</span><span class="n">b</span><span class="p">)</span><span class="w"> </span><span class="c1">// selected baz is replaced with &amp;b and does not have any autocompletions</span>
</code></pre></div>
<p>I was not able to find any VSC issue on this, perhaps i looked it up wrong, but any help would be appreciated <span aria-label="heart" class="emoji emoji-2764" role="img" title="heart">:heart:</span></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>